<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}课程管理系统{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('static', path='css/style.css') }}">
</head>
<body>
    <nav>
        <ul>
            <li><a href="{{ url_for('root') }}">首页</a></li>
            <li><a href="{{ url_for('get_courses_html') }}">课程列表</a></li>
            <li><a href="{{ url_for('create_course_html') }}">添加课程</a></li>
        </ul>
    </nav>
    
    <div class="container">
        <!-- 消息提示区域 -->
        {% if messages %}
            {% for category, message in messages %}
                <div class="message {{ category }}">{{ message }}</div>
            {% endfor %}
        {% endif %}
        
        {% block content %}{% endblock %}
    </div>
    
    {% block extra_js %}{% endblock %}
</body>
</html>